package pro.shushi.pamirs.demo.api.model;

import pro.shushi.pamirs.boot.base.ux.annotation.field.UxWidget;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxTableSearch;
import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.IdModel;


@Model.model(TicketType.MODEL_MODEL)
@Model(displayName = "票类型", labelFields = "name")
public class TicketType extends IdModel {

    private static final long serialVersionUID = -5104390780952631397L;

    public static final String MODEL_MODEL = "demo.TicketType";

    @UxTableSearch.FieldWidget(@UxWidget())//支持搜索
    @Field.String
    @Field(displayName = "名称", required = true)
    private String name;


    @Field.Boolean
    @Field(displayName = "是否儿童", required = true)
    private Boolean childFlag;


    @Field.Boolean
    @Field(displayName = "是否加床", required = true)
    private Boolean cotFlag;


    @Field.Boolean
    @Field(displayName = "是否占床", required = true)
    private Boolean bedFlag;


    @Field.Boolean
    @Field(displayName = "是否独占", required = true)
    private Boolean allFlag;


    @Field.Boolean
    @Field(displayName = "是否用于显示", required = true)
    private Boolean displayFlag;


    @Field.Boolean
    @Field(displayName = "状态", defaultValue = "true")
    private Boolean status;

}
